#!/bin/bash

#Authors:
#  Bruno Goncalves Araujo <www.biglinux.com.br>
#
#License: GPLv2 or later
#################################################


. /usr/share/bigcontrolcenter/default/theme-categories.sh.htm

#Translation
export TEXTDOMAINDIR="/usr/share/locale-langpack"
export TEXTDOMAIN=bigcontrolcenter-start-install-remove

echo '
<script language="JavaScript">
window.resizeTo(640,480);
function NoResize(){
  window.resizeTo(640,480);
}
</script>
'

title=$"Instalar ou remover programas"
apply=$"Aplicar"
close=$"Sair"
tip_softwarecenter=$"A forma mais simples de instalar e remover programas."
tip_synaptic=$"Facilidade e opcoes avancadas no mesmo local."
tip_wine=$"Se o programa ou jogo que voce deseja nao possui versao para Linux experimente utiliza-lo com o Wine"
tip_deb="Saiba como instalar arquivos de CDs, Pen-Drives ou que foram baixados na internet."



. /usr/share/bigcontrolcenter/default/theme.sh.htm

cat << EOF
	<script type="text/javascript" src="/usr/share/bigcontrolcenter/default/js/jquery-1.3.2.min.js"></script>


	<script type="text/javascript">
	\$(function() {
		\$("#tabs").tabs({
			event: 'mouseover'
		})
	});

	if (document.images) {
	buttonUp = new Image(); buttonUp.src = "/usr/share/bigcontrolcenter/default/images/category-background.png";
	buttonDown = new Image(); buttonDown.src = "$(echo $HOME)/.bigcontrolcenter/category-background-over.png";
	}

	function turn_off(cell) {
	if (document.images != null) {
	cell.style.backgroundImage = "url('" + buttonUp.src + "')";
	}
	}

	function turn_on(cell) {
	if (document.images != null) {
	cell.style.backgroundImage = "url('" + buttonDown.src + "')";
	}
	}

  </script>





EOF

echo "<title>$title</title><body onResize=\"NoResize();\">"

#header
open_header
echo "$title" '</font><br>' $"Instalar e remover programas nunca foi tao facil."
close_header



echo "<div id=\"tabs-$1\"><TABLE align=center><tr><td>"
    echo "<a href=\"softwarecenter.sh.htm\"" "$mouseover_open" $tip_softwarecenter "$mouseover_close>""<table onmouseout=\"turn_off(this)\" onmouseover=\"turn_on(this)\" $bigbash_categories_background_config background=$bigbash_categories_background><tr><td width=30><img src=softwarecenter.png></td>"'<td valign="middle">'"$bigbash_categories_font" $"Instalar ou remover simples<br>(Central de Programas)" " </font></td></tr></table></a>"
echo '</td><td width=100%></td><td>'
    echo "<a href=\"synaptic.sh.htm\"" "$mouseover_open" $tip_synaptic "$mouseover_close>""<table onmouseout=\"turn_off(this)\" onmouseover=\"turn_on(this)\" $bigbash_categories_background_config background=$bigbash_categories_background><tr><td width=30><img src=synaptic.png></td>"'<td valign="middle">'"$bigbash_categories_font" $"Instalar ou remover avancado<br>(Synaptic)" " </font></td></tr></table></a>"
echo '</td></tr><tr><td>'
    echo "<a href=\"wine.sh.htm\"" "$mouseover_open" $tip_wine "$mouseover_close>""<table onmouseout=\"turn_off(this)\" onmouseover=\"turn_on(this)\" $bigbash_categories_background_config background=$bigbash_categories_background><tr><td width=30><img src=wine.png></td>"'<td valign="middle">'"$bigbash_categories_font" $"Instalar programas feitos para Windows" " </font></td></tr></table></a>"
echo '</td><td width=100%></td><td>'
    echo "<a href=\"deb.sh.htm\"" "$mouseover_open" $tip_deb "$mouseover_close>""<table onmouseout=\"turn_off(this)\" onmouseover=\"turn_on(this)\" $bigbash_categories_background_config background=$bigbash_categories_background><tr><td width=30><img src=deb.png></td>"'<td valign="middle">'"$bigbash_categories_font" $"Instalar programas diretamente de arquivos" " </font></td></tr></table></a>"
echo '</td></tr><tr><td>'
echo '</table></div>'




echo "</td></tr></table></div><div id=\"rodape\"><button type=button value= $close onClick= parent.location='/usr/share/bigbashview/exemplo2.sh.htm?close=True'>   <img src=\"/usr/share/bigcontrolcenter/default/images/cancel.png\" style=\"vertical-align:top\"  />  $close     </button></div>"

